<?php
	/** 
	* Template Name: Videos Archive
	*/
	$moranguinho = 'nao';
	$logged = 'sim';
	$id='diversao';
	include 'header.php';
?>
			<div class="wrapper-content">
				<?php include 'login-panel.php'; ?>
				<span class="clear"></span>				
				<div class="extra-wrapper-slide-diversao videos-diversao">
					<div class="wrapper-player-videos">
						<div class="player-videos">
							<?php $count = 1 ?>
							<?php $query = new WP_Query( 'post_type=video' ); ?>
							<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
							<?php if ($count==1) { ?>
							<h2 class="title-video"><?php the_title(); ?></h2>
							<?php $show = get('opcoes_show'); if($show==false && is_user_logged_in()==false) { ?>
								<a class="fancybox" href="#signin"><img src="<?php bloginfo('template_directory')?>/img/videos-not-logged-gd.png" class="video-not-logged"></a>
							<?php } ?>
							<iframe width="499" height="357" src="//www.youtube.com/embed/<?php echo get('video_id'); ?>" frameborder="0" allowfullscreen></iframe>
						</div>
						<span class="excerpt-video"><?php the_excerpt(); ?></span>
					</div>
					<div class="wrapper-slide-videos-vertical">
						<div class="slide-videos-vertical">
							<ul>
							<?php $count++; } else { ?>
								<li>
									<a href="<?php the_permalink(); ?>">
									<?php $show = get('opcoes_show'); if($show==false && is_user_logged_in()==false) { ?>
										<img src="<?php bloginfo('template_directory')?>/img/videos-not-logged-pq.png" class="video-not-logged-pq">
									<?php } ?>
									<?php the_post_thumbnail('video-thumb'); ?>
									</a>							
									<span class="tit-videos"><?php the_title(); ?></span>
								</li> <?php } ?>
							<?php endwhile; endif; ?>
							</ul>
							<span class="clear"></span>
						</div>
						<a href="#" class="slide-videos-vertical-control-prev">&lsaquo;</a>
						<a href="#" class="slide-videos-vertical-control-next">&rsaquo;</a>
						<span class="clear"></span>
					</div>
					<span class="clear"></span>
					<img src="<?php bloginfo('template_directory')?>/img/moranguinho-videos.png?7" alt="" class="moranguinho-videos"/>
				</div><!-- /extra-wrapper-slide-diversao -->
				<span class="clear"></span>
				<div class="destaque-produtos videos-diversao-produtos">
					<?php include 'slide-produtos.php'; ?>
				</div><!-- /destaque-produtos -->
				<div class="wrapper-destaques-diversao">
					<div class="conteudo-exclusivo">
						<img src="<?php bloginfo('template_directory')?>/img/conteudos-exclusivos.png?5" alt=""/>
					</div>
					<ul>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url')?>/jogos"><span class="roxo-amarelo">Jogar</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url')?>/jogos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-jogar.png?6" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url')?>/jogos" class="clique-aqui">Clique Aqui</a>
						</li>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url')?>/desenhos"><span class="roxo">Desenhar</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url')?>/desenhos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-desenhar.png?7" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url')?>/desenhos" class="clique-aqui">Clique Aqui</a>
						</li>
						<li class="no-margin-right">
							<div class="tit-categoria">
								<a href="<?php bloginfo('url')?>/wallpapers"><span class="verde">Papéis de Parede</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url')?>/wallpapers"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-papeis.png" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url')?>/videos" class="clique-aqui">Clique Aqui</a>
						</li>
						<span class="clear"></span>
					</ul>
					<span class="clear"></span>
				</div><!-- /wrapper-destaques-diversao -->
				<span class="clear"></span>
			</div><!-- /wrapper-content -->
			<span class="clear"></span>
		</div><!-- /container -->
		<span class="clear"></span>
	</div> <!-- /wrapper-container -->
	<span class="clear"></span>
<?php include 'footer.php'; ?>